package java56_6;

public class TestPet3 {

	public static void main(String[] args) {
		Dog d1 = new Dog("哮天犬", 30000, "公", "神兽");
		Dog d2 = d1;
		System.out.println(d1 == d2);

		Dog tiangou = new Dog("哮天犬", 30000, "母", "中华田园犬");
		System.out.println(">>>>>>>>>>>>>>>>>");
		System.out.println(d2.equals(tiangou));
	}
}
